﻿using System;

namespace EnterpriseFramework.DataAccess.Provider
{
    public interface ICompatibility
    {
        System.Data.IDbConnection Connection { get; }

        Command GetInsertCommand(Table table, QueryResult query);

        object NextSequenceValue(Table table);

        object AutoIncrementedValue(Table table);

        Command GetUpdateCommand(Table table);

        Command GetDeleteCommand(Table table);

        Command GetDeleteCommand(Table table, QueryResult query);

        Command GetSelectCommand(Table table, QueryResult query);

        Command GetFindQuery(Table table);
    }
}
